<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>layout后台布局 - Layui</title>
<link rel="stylesheet" href="/layui/css/layui.css">
<link rel="stylesheet" href="/css/admin.css">
<link rel="stylesheet" href="/css/mypage.css">
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <include file='public:header' />
  </div>
  <div class="layui-side layui-bg-black">
    
    <include file="public:left" />
  </div>
  <div class="layui-body">
    <table class="table table-hover" id="list">
      <tr>
        <th width="145">选择</th>
        <th width="45">ID</th>
        <th width="120">用户名</th>
        <th >手机号</th>
        <th >性别</th>
        <th width="200">email</th>
        <th >密码</th>
        <th >注册时间</th>
        <th width="220">操作</th>
      </tr>
     
      <foreach name="str1" item="v">
      <tr>                   
          <td><input type="checkbox"  value="<?php echo $v['id']; ?>"  /></td>
          <td>{$v["id"]}</td>
          <td>{$v["username"]}</td>
          <td>{$v["phone"]}</td>
          <td>{$v["sex"]}</td>
          <td>{$v["email"]}</td>
          <td>{$v["password"]}</td>
          <td><?php echo date('Y-m-d H:i:s', $v['regtime']); ?></td>
          <td><a href="{:U('Admin/Index/edit',array(id=>$v['id']))}">修改</a> <a class="button border-yellow button-little" href="{:U('Admin/Index/dele',array(id=>$v['id']))}" onclick="{
                      if (confirm('确认删除?')) {
                          return true;
                      }
                      return false;
                  }">删除</a></td>
      </tr>
     </foreach>
      </table>
       <div class="pages">
       {$page}
      </div>      
  </div>
  <div class="layui-footer">
    <!-- 底部固定区域 -->
  </div>
<script src="/layui/layui.js"></script>
<script>
//JavaScript代码区域
layui.use('element', function(){
  var element = layui.element(); //导航的hover效果、二级菜单等功能，需要依赖element模块
   
});
</script>
</body>
</html>